package com.youyi.yyviewsdklibrary.picker.impl;


import com.youyi.yyviewsdklibrary.picker.contract.DateFormatter;

public class SimpleDateFormatter implements DateFormatter {
    @Override // com.youyi.yyviewsdklibrary.picker.contract.DateFormatter
    public String formatYear(int i) {
        if (i < 1000) {
            i += 1000;
        }
        return "" + i;
    }

    @Override // com.youyi.yyviewsdklibrary.picker.contract.DateFormatter
    public String formatMonth(int i) {
        String str;
        StringBuilder sb;
        if (i < 10) {
            sb = new StringBuilder();
            str = "0";
        } else {
            sb = new StringBuilder();
            str = "";
        }
        sb.append(str);
        sb.append(i);
        return sb.toString();
    }

    @Override // com.youyi.yyviewsdklibrary.picker.contract.DateFormatter
    public String formatDay(int i) {
        String str;
        StringBuilder sb;
        if (i < 10) {
            sb = new StringBuilder();
            str = "0";
        } else {
            sb = new StringBuilder();
            str = "";
        }
        sb.append(str);
        sb.append(i);
        return sb.toString();
    }
}
